package com.min.star.service;

import java.util.List;

import javax.validation.Valid;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.min.star.model.Student;

public interface IStudentService {

	List<Student> selectStudentList();

	Student login(Student student);

	Page<Student> findPage(Page<Student> page, Student student);

	int delete(String ids);

	// 新增学生，返回值为影响的行数
	int add(Student student);

	// 新增学生，返回的是新增后的对象
	Student save(Student student);

	// 更新出版社信息，返回的是更新后的对象
	Student update(@Valid Student student);

	int delete(Long id);

	Student selectById(Long id);

	int editInfo(Object name, Object value, Long id);

}
